A5Storage::NameCache AddItems Method

Syntax

.AddItems as A5Storage::CallResult (Values as C)

Arguments

ValuesCharacter

A CR-LF delimited list of storage definitions in the format "name<tab>connectionstring<crlf>"

Returns

ResultA5Storage::CallResult

Information about whether or not the operation succeed. Result.Success with be .T. if the operation succeeds, otherwise .F.

Description

Adds storage definitions the NameCache object.

Example

Dim Cache as A5Storage::NameCache
	dim Storages as C = <<%txt%
Storage1	Provider='Disk';Container='C:\A5WebRoot1';
Storage2	Provider='Disk';Container='C:\A5WebRoot2';
BadStore	Provider='Disk';Container='AA:\abc';
%txt%
if Cache.AddItems(Storages)
    ' do stuff here
else
    ' Oops!
    showvar("Oops!" + crlf() + Cache.CallResult.Text)
end if